<?php
	#########################################
	#		SUPPRESSION DE FORMULAIRE 		#
	#########################################
	
	require_once "../db/mysql/tbr.php";
	require_once "../classes/forms.cls.php";
	require_once "../conf/config.php";
	
	
	/****  CONNECTION TO RDBMS SERVER ****/	
	require_once "../db/mysql/tbr.ini.php";
	/***********************************/
	
	
	$form = new svq_form();
	$formTable = 'svq_forms';
	$lineTable = 'svq_line';
	$formLineTable = 'svq_forms_line';	
	$formId = $_REQUEST['dbfid'];	
	
	//$totallines = bcsub($form->getTotalLine($base,array($formTable),$dbfid),1);
	//let's get the line id	
	//$__formLineIndex = substr($_REQUEST['cpb'],3,strlen($_REQUEST['cpb']));	
	//$lineId          = $_REQUEST['dblid'.$__formLineIndex] ;
	
	$___ = $form->delete($base,$formTable,$lineTable,$formLineTable,$formId);  //let's
	if($___) echo 1;
	else echo $formId.'#';
	
	
	
	
	//echo $_REQUEST['s'];
?>